package com.thingsgrid.appmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.thingsgrid.appmanager.entity.ApplicationInfo;
import com.thingsgrid.appmanager.entity.SystemSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IAppStoreMapper extends BaseMapper<SystemSetting> {


	List<ApplicationInfo> getApp(IPage<ApplicationInfo> page, String app_name, String shlefDate, String putoffDate, Float version);

	int downloadNum(String id);

	/**
	 *说明：添加应用信息
	 *@author lilongfei
	 *@since 2019/8/22 15:25
	 */
	Integer insertApplication(@Param("application") ApplicationInfo applicationInfo);

}
